package com.koron.order.experiment.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.base.BaseQueryBean;
import com.koron.common.core.business.common.service.CommonService;
import com.koron.order.experiment.bean.po.ExperimentItemParamsPo;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * (ExperimentItemParams)表服务接口
 *
 * @author zhouj
 * @since 2021-10-09 09:09:45
 */
public interface ExperimentItemParamsService extends CommonService {

    int insertOrUpdate(SessionFactory factory, ExperimentItemParamsPo experimentItemParams);

    int insertOrUpdateBatch(SessionFactory factory, List<ExperimentItemParamsPo> experimentItemParamsList);

    int insert(SessionFactory factory, ExperimentItemParamsPo experimentItemParams);

    int insertBatch(SessionFactory factory, List<ExperimentItemParamsPo> experimentItemParamsList);

    int update(SessionFactory factory, ExperimentItemParamsPo experimentItemParams);

    int deleteById(SessionFactory factory, String id);

    int deleteByItemId(SessionFactory factory, String itemId);

    int deleteByExperimentId(SessionFactory factory, String experimentId);

    ExperimentItemParamsPo queryById(SessionFactory factory, String id);

    PageInfo queryPageList(SessionFactory factory, ExperimentItemParamsPo experimentItemParams, BaseQueryBean pageBean);

    List<ExperimentItemParamsPo> queryList(SessionFactory factory, ExperimentItemParamsPo experimentItemParams);

}
